package com.cn.happymall.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cn.happymall.bean.MmallUser;
import com.cn.happymall.bean.MmallUserExample;

public interface MmallUserMapper {
	int countByExample(MmallUserExample example);

	int deleteByExample(MmallUserExample example);

	int deleteByPrimaryKey(Integer id);

	int insert(MmallUser record);

	int insertSelective(MmallUser record);

	List<MmallUser> selectByExample(MmallUserExample example);

	MmallUser selectByPrimaryKey(Integer id);

	int updateByExampleSelective(@Param("record") MmallUser record, @Param("example") MmallUserExample example);

	int updateByExample(@Param("record") MmallUser record, @Param("example") MmallUserExample example);

	int updateByPrimaryKeySelective(MmallUser record);

	int updateByPrimaryKey(MmallUser record);

	MmallUser findUser(@Param("name") String username, @Param("pwd") String password);

	int findByName(String name);

	int findByEmail(String email);

}